#pragma once

#include "Mysql.h"

namespace Database
{

class AFX_EXT_CLASS BusRow
{
public:
	BusRow(void);

	~BusRow(void);

public:
	std::string getID() const;

	void setID(const std::string &id);

	std::string getLicencePlate() const;

	void setLicencePlate(const std::string &v);

private:
	std::string	_id;
	std::string _licencePlate;
};

class AFX_EXT_CLASS BusTable
	: public Table
{
public:
	BusTable();

	~BusTable();

public:
	bool insert(const BusRow &br);

	bool select(std::list<BusRow> &brs);

	bool updateByID(const BusRow &br);

	bool deleteByID(const BusRow &br);
};

}